import api from "../../http/apis/apis"

export default {
    namespaced: true,
    state: {
        carContext:[]//所有订单信息
    },
    mutations: {
        setCarContext(state,text){
            state.carContext = text
        }
    },
    actions: {
        async getCarComments(context){
            const data =  await api.carCommentApi.getCarComments();
            context.commit('setCarContext',data.data.data)
        },
        async deletCarComments(context,_id){
            const data = await api.carCommentApi.deletCarComments(_id)
            console.log("2222222",data);
        }
    },
    model: {
    }
}